<?php
/**
 * DotHerbert
 *
 * @package    core
 * @subpackage stub
 * @copyright  2009 extreme-programmers
 * @license    http://dotherbert.extreme-programmers.com/license   BSD License
 * @version    $Id:$
 */

namespace dotherbert\core\stub;

require_once 'dotherbert/core/stub/Stub.php';

/**
 * Control structure stub
 *
 * @package    core
 * @subpackage stub
 * @author     Johannes Trink <johannes.trink@extreme-programmers.com>
 */
class ControlStructureStub extends Stub
{
    /**
     * Instance
     *
     * @var ControlStructureStub
     */
    protected static $instance;

    /**
     * Set instance
     *
     * @param ControlStructureStub $stub
     * @return void
     */
    public static function setInstance(ControlStructureStub $stub)
    {
        static::$instance = $stub;
    }

    /**
     * Include
     *
     * @param string $file
     * @return bool
     */
    public function includeFile($file)
    {
        return (bool) include $file;
    }
}